﻿


namespace SvCore.Objects;

public class User : IDbData
{
    [Desc("账号Id")]
    public long Uuid = 0;
    [Desc("账号")]
    public string Account = "account0";
    [Desc("密码")]
    public string Password = "123456";
    [Desc("验证码")]
    public string Token = "";
    [Desc("注册时间")]
    public DateTime TimeRegister = DateTime.Now;
    [Desc("上次登录时间")]
    public DateTime TimeLogin = DateTime.Now;

    public string DbKey() => "users";
    public string Uid() => Account;
    public bool Exist() => Uuid != 0;
}
